﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{

	}
	protected void btnOK_Click(object sender, EventArgs e)
	{
		string strName = "";
		string strPassword = "";
		string strResume = "";
		string strJob = "";
		string strOutput = "";

		strName = txtName.Text.Trim();
		strPassword = txtPassword.Text;
		strJob = dplJob.SelectedItem.Text;
		strResume = txtResume.Text.Trim();

		strOutput += "注册成功！你好，：" + strName;
		if (rdoMale.Checked == true)
		{
			strOutput += "先生";
		}
		else if (rdoFemale.Checked == true)
		{
			strOutput += "女士";
		}

		strOutput += "<br>你的密码为：" + strPassword;
		strOutput += "<br>你的职业为：" + strJob;
		strOutput += "<br>你的爱好为：";

		if (chkReading.Checked == true)
		{
			strOutput += "阅读 ";
		}

		if (chkSing.Checked == true)
		{
			strOutput += "唱歌 ";
		}

		if (chkDance.Checked == true)
		{
			strOutput += "跳舞 ";
		}

		strOutput += "<br>你的个人简介为：<br>" + strResume;

		lblInfo.Text = strOutput;
	}
}
